<div class="box-body">
    <form class="layui-form" action="{:url('/cha/carrier/update')}" method="post" style="width:550px;">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">承运商	</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="承运商"  name="carrier_name" {if isset($carrier)}value="{$carrier.carrier_name}"{/if}  class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="承运商编号"  name="carrier_num" {if isset($carrier)}value="{$carrier.carrier_num}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">付款方式</label>
            <div class="layui-input-block">
                <select name="pay_type">
                    <option value="">请选择</option>
                    {foreach $pay_type as $k=>$t}
                    <option {if isset($carrier) && $t==$carrier.pay_type}selected{/if} value="{$k}">{$t}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="排序"  name="sort" {if isset($carrier)}value="{$carrier.sort}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" {if !isset($carrier) || (isset($carrier) && $carrier.status)}checked{/if} lay-skin="switch">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">提货时间</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="提货时间"  name="take_time" {if isset($carrier)}value="{$carrier.take_time}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出库时间</label>
            <div class="layui-input-block">
                <input  class="layui-input" type="text" autocomplete="off" placeholder="出库时间"  name="out_time" {if isset($carrier)}value="{$carrier.out_time}"{/if}/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">货代地址</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="货代地址"  name="address" {if isset($carrier)}value="{$carrier.address}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注"  name="remark" {if isset($carrier)}value="{$carrier.remark}"{/if} class="layui-input" />
            </div>
        </div>
        {if isset($carrier)}
        <input type="hidden" name="carrier_id" value="{$carrier.carrier_id}">
        {/if}
    </form>
</div>